package com.guiji.text2video.fastvideo.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.guiji.text2video.common.core.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.guiji.text2video.common.core.web.domain.BaseEntity;

/**
 * @Description 最后打包的package.json对应的类
 * @Author zxt
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2021/4/9 13:59
 */
public class TextPackageTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务号 */
    private String taskId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date finishTime;

    /** 状态（0默认 1-100表示进度  200打包完成 300视频生成完成 ） */
    @Excel(name = "状态", readConverterExp = "0=默认,1=-100表示进度,2=00打包完成,3=00视频生成完成")
    private String status;

    /** 视频文件 */
    @Excel(name = "视频文件")
    private String video;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String content;

    /** 包json */
    @Excel(name = "包json")
    private String packageJson;

    public void setTaskId(String taskId)
    {
        this.taskId = taskId;
    }

    public String getTaskId()
    {
        return taskId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setFinishTime(Date finishTime)
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime()
    {
        return finishTime;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setVideo(String video)
    {
        this.video = video;
    }

    public String getVideo()
    {
        return video;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setPackageJson(String packageJson)
    {
        this.packageJson = packageJson;
    }

    public String getPackageJson()
    {
        return packageJson;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("taskId", getTaskId())
                .append("title", getTitle())
                .append("createTime", getCreateTime())
                .append("finishTime", getFinishTime())
                .append("status", getStatus())
                .append("video", getVideo())
                .append("content", getContent())
                .append("packageJson", getPackageJson())
                .toString();
    }
}
